/* 前台系统样式 - Frontend CSS */

/* 基础样式 */
body {
    background-color: #f8f9fa;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

/* 功能卡片 */
.feature-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 自定义按钮 */
.btn-custom {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 量表徽章 */
.scale-badge {
    font-size: 0.8rem;
    padding: 4px 8px;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* 表单样式 */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-floating .form-control:focus {
    border-color: #667eea;
}

/* 导航栏 */
.navbar-brand {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .card {
        margin-bottom: 1rem;
    }
}

/* 测评页面样式 */
.survey-container {
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.question-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px 15px 0 0;
    padding: 1.5rem;
}

.option-item {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.option-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* 结果展示样式 */
.result-container {
    max-width: 900px;
    margin: 0 auto;
}

.score-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.interpretation-card {
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.login-left {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.login-right {
    padding: 60px 40px;
}

.brand-logo {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.btn-login {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
}

.btn-login:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
}

.member-level {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    display: inline-block;
}

.level-free { background-color: #e7f3ff; color: #0066cc; }
.level-pro { background-color: #fff3e0; color: #e65100; }
.level-org { background-color: #f3e5f5; color: #7b1fa2; }
.level-research { background-color: #e8f5e8; color: #2e7d32; }

@media (max-width: 768px) {
    .login-left {
        padding: 40px 20px;
    }
    .login-right {
        padding: 40px 20px;
    }
    .brand-logo {
        font-size: 2rem;
    }
}

/* 注册页面样式 */
.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.register-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 20px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 步骤指示器样式 */
.step-indicator {
    padding: 30px 40px 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.step.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.step.completed {
    background: #28a745;
    color: white;
}

.step.completed::before {
    content: "✓";
    font-weight: bold;
}

/* 步骤内容样式 */
.step-content {
    padding: 40px;
    min-height: 500px;
}

.step-form {
    transition: all 0.3s ease;
}

.step-form.hidden {
    display: none;
}

.step-form h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
}

/* 表单输入样式增强 */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not(:placeholder-shown) ~ label {
    color: #667eea;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

/* 按钮样式 */
.btn-next {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-next:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

/* 协议内容框样式 */
.agreement-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-bottom: 20px;
}

.agreement-box h6 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 15px;
}

.agreement-box p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #555;
}

.agreement-box p strong {
    color: #333;
}

/* 数字签名区域样式 */
.signature-pad {
    min-height: 120px;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.signature-pad:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.signature-pad.signed {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    cursor: default;
}

.signature-pad p {
    margin: 0;
    color: #6c757d;
}

.signature-pad small {
    margin-top: 5px;
    color: #adb5bd;
}

.signature-pad.signed p {
    color: #28a745;
    font-weight: 600;
}

/* 完成页面样式 */
.step-form .alert {
    border-radius: 15px;
    border: none;
    padding: 20px;
}

.step-form .alert-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #333;
}

.step-form .alert h6 {
    color: #667eea;
    font-weight: 600;
}

.step-form .alert ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .register-card {
        margin: 10px;
        border-radius: 15px;
    }
    
    .step-indicator {
        padding: 20px 20px 15px;
    }
    
    .step-content {
        padding: 30px 20px;
        min-height: 400px;
    }
    
    .step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-indicator .row {
        font-size: 0.9rem;
    }
    
    .form-floating {
        margin-bottom: 1rem;
    }
    
    .btn-next,
    .btn-outline-secondary {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .agreement-box {
        max-height: 250px;
        padding: 15px;
    }
    
    .signature-pad {
        min-height: 100px;
    }
}

/* 忘记密码页面样式 */
.forgot-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.forgot-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    margin: 20px;
    animation: slideUp 0.6s ease-out;
}

.forgot-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 30px 40px 25px;
    border: none;
}

.forgot-card .card-header h3 {
    font-weight: 600;
    margin-bottom: 10px;
}

.forgot-card .card-header p {
    margin: 0;
    font-size: 0.95rem;
}

.forgot-card .card-body {
    padding: 40px;
}

/* 忘记密码页面步骤指示器 */
.forgot-card .step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding: 0;
    background: none;
    border: none;
}

.forgot-card .step-indicator .step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin: 0 15px;
    transition: all 0.3s ease;
    position: relative;
}

.forgot-card .step-indicator .step.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.forgot-card .step-indicator .step.completed {
    background: #28a745;
    color: white;
}

.forgot-card .step-indicator .step.completed::before {
    content: "✓";
    font-weight: bold;
}

/* 步骤内容样式 */
.forgot-card .step-content {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.forgot-card .step-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forgot-card .step-content h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
}

/* 验证码显示样式 */
.verification-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.verification-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 成功图标样式 */
.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 表单增强样式 */
.forgot-card .form-floating {
    margin-bottom: 20px;
}

.forgot-card .form-floating > .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

.forgot-card .form-floating > .form-control:focus ~ label,
.forgot-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
}

/* 按钮样式 */
.forgot-card .btn-custom {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.forgot-card .btn-custom:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.forgot-card .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-card .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

/* 提示信息样式 */
.forgot-card .alert {
    border-radius: 10px;
    border: none;
    padding: 15px;
    margin: 20px 0;
}

.forgot-card .alert-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #333;
}

.forgot-card .alert-info i {
    color: #667eea;
}

.forgot-card .alert-info a {
    color: #667eea;
    font-weight: 600;
}

.forgot-card .alert-info a:hover {
    color: #764ba2;
}

/* 返回登录链接样式 */
#backToLogin a {
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s ease;
}

#backToLogin a:hover {
    color: #764ba2;
    transform: translateX(-3px);
}

/* 邮箱显示样式 */
#emailDisplay {
    color: #667eea;
    font-weight: 600;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .forgot-card {
        margin: 10px;
        border-radius: 15px;
    }
    
    .forgot-card .card-header {
        padding: 25px 20px 20px;
    }
    
    .forgot-card .card-header h3 {
        font-size: 1.5rem;
    }
    
    .forgot-card .card-body {
        padding: 30px 20px;
    }
    
    .forgot-card .step-indicator .step {
        width: 30px;
        height: 30px;
        font-size: 12px;
        margin: 0 10px;
    }
    
    .verification-code {
        font-size: 1.5rem;
        padding: 15px;
        letter-spacing: 2px;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .forgot-card .btn-custom,
    .forgot-card .btn-outline-secondary {
        padding: 10px;
        font-size: 0.9rem;
    }
} 